package com.lushuan.ch03_configuration_injection.controller;


import com.lushuan.ch03_configuration_injection.beans.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping
    public String getUser() {
        User user = new User();
        return user.toString();
    }

}
